import instance from "./request.js"
import axios from "./request.js"

export function fetchGoodsList(page = 1, pagesize = 10) {
    return instance.get(`/getgoods?pageindex=${page}&pagesize=${pagesize}`)
}

// 获取商品的轮播图
export function fetchGoodsImages(goodsid) {
    return axios.get(`/getthumbimages/${goodsid}`)
}
// 获取商品的基本信息
export function fetchGoodsInfo(goodsid) {
    return axios.get(`/getgoodsinfo/${goodsid}`)
}